package com.gaogzhen.utils;

/**
 * @author Administrator
 */
public final class Constants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;


    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 2;

    public static final String UNKNOWN_USER = "未知用户";


    /**
     * ===========================
     * GCN充值头
     * ===========================
     */

    /**
     * GCN充值头
     */
    public static final String[] CASH_RECHARGE_HEADERS =
            {"ID", "用户ID", "用户名", "真实用户名", "充值币种", "充值金额(USDT)", "手续费", "到账金额(CNY)", "充值方式",
                    "充值订单", "参考号", "充值时间", "完成时间", "状态", "审核级数", "审核备注"};

    public static final String[] CASH_RECHARGE_PROPERTIES =
            {"id", "userId", "username", "realName", "coinName", "num", "fee", "mum", "type",
                    "tradeno", "remark", "created", "lastTime", "status", "step", "auditRemark"};
    public static final String[] CASH_RECHARGE_STATUS = {"待审核", "审核通过", "拒绝", "充值成功"};
    /**
     * GCN提现头
     */
    public static final String[] CASH_WITHDRAWS_HEADERS =
            {"ID", "用户ID", "用户名","提现金额(USDT)", "手续费", "到账金额(CNY)", "提现开户名","银行名称/账号",
                    "申请时间", "完成时间", "状态", "审核级数", "审核备注"};

    public static final String[] CASH_WITHDRAWS_PROPERTIES =
            {"id", "userId", "username",  "num", "fee", "mum", "truename",
                    "bank", "created", "lastTime", "status", "step", "remark"};
    public static final String[] CASH_WITHDRAWS_STATUS = {"待审核", "审核通过", "拒绝", "提现成功"};
    /**
     *
     */
    public enum RechargeType {
    }

    /************************************* REDIS KEY ************************************/
    /**
     * 验证码redis存储Key
     */
    public static String REDIS_KEY_CAPTCHA_KEY = "CAPTCHA:";

    /**
     * 短信验证码redis存储Key
     */
    public static String REDIS_KEY_SMS_CODE_KEY = "SMSCODE:";

    /**
     * 登录设备存储key
     */
    public static String REDIS_KEY_DEVICES_KEY = "DEVICES";

    /**
     * 最大缓存数据量
     */
    public static long REDIS_MAX_CACHE_KLINE_SIZE = 10000L;

    /**
     * 币币交易K线 redis存储Key
     */
    public static String REDIS_KEY_TRADE_KLINE = "TRADE_KLINE:";


    /**
     * 币币交易撮合队列 redis存储Key
     */
    public static String REDIS_KEY_TRADE_MATCH = "TRADE_MATCH:";

    /**
     * 币币交易对
     */
    public static String REDIS_KEY_TRADE_MARKET = "TRADE_MARKET";

    /**
     * 法币充值审核锁
     */
    public static String REDIS_KEY_CASH_RECHARGE_AUDIT_LOCK = "CASH_RECHARGE_AUDIT_LOCK:";

    /**
     * 法币提现审核锁
     */
    public static String REDIS_KEY_CASH_WITHDRAW_AUDIT_LOCK = "CASH_WITHDRAW_AUDIT_LOCK:";

    /**
     * 数字货币提现审核锁
     */
    public static String REDIS_KEY_COIN_WITHDRAW_AUDIT_LOCK = "COIN_WITHDRAW_AUDIT_LOCK:";

    /**
     * 币币交易撤单锁
     */
    public static String REDIS_KEY_TRADE_ORDER_CANCEL_LOCK = "TRADE_ORDER_CANCEL_LOCK:";

    /**
     * 币币交易撮合锁
     */
    public static String REDIS_KEY_TRADE_ORDER_MATCH_LOCK = "TRADE_ORDER_MATCH_LOCK:";

    /**
     * 创新交易资金账户锁
     */
    public static String REDIS_KEY_TRADE_ACCOUNT_LOCK = "TRADE_ACCOUNT_LOCK:";
    /************************************* REDIS KEY ************************************/


    /************OAUTH*********************/
    public static String AUTHORIZATION_HEADER = "Authorization";

    public static String BEARER = "Bearer ";
    /************OAUTH*********************/

    /************STREAM*********************/
    public static String CHANNEL_SENDTO_USER = "user";
    public static String CHANNEL_SENDTO_GROUP = "group";
    public static String CHANNEL_TICKER_UPDATE = "ticker";


    /**
     * 内置的Token
     */
    public static final String INSIDE_TOKEN = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NzM2NjM0OTgsInVzZXJfbmFtZSI6IjEwMTQwNjY5MDkyODAzNzQ3ODUiLCJhdXRob3JpdGllcyI6WyJST0xFX1VTRVIiXSwianRpIjoiODlhNjJjMzAtZjU4MC00OTI2LTg4NTAtYTQ0OTQ4MjkwZGVmIiwiY2xpZW50X2lkIjoiY29pbi1hcGkiLCJzY29wZSI6WyJhbGwiXX0.pjcSLT1QXViQDCx5uN1oIzW44Mx5xPGBQn0jKcN4fcNtGVdr4iVR3sejomM0YofjE3rqqerOjqqrNRvMulcTuFxNFd7nF6DrC95U6cbuf6GNP39jDqub4MCPCihdmLVutbVbQmKCG_LlK7V1xvRjR0zGH58JeF4qNJYNfdrDuqppjD0ItzfV2gP8nm-67Pb5bunM3wflSD3Zht8v7L8GZPEeLrtGq8YlJuuP7Fcmt3lSP1y9HeZqi4UUYoxsnMeEctor8kV4VmucCfEXqf4YNJGqjX33wN6fT4iqdCepKRyMrMBNOILrKoqQwVef6hEhDvgynLIiVXM-8-U9DI5q6g" ;

}
